gdk: Documentation touchups
authorMatthias Clasen <mclasen@redhat.com>
Fri, 14 Aug 2020 00:59:04 +0000 (20:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 14 Aug 2020 02:24:06 +0000 (22:24 -0400)
Minor rewordings here and there, strip nonpublic
functions of doc comments, deemphasize logical/physical
devices.

gdk/gdkdevice.c
gdk/gdkseat.c

index 3dbc4ec2c458eeec4005b5840b28409cea092a2c..a6a545656bf5bc0b4476c755bc5cc9e71b5b2eef 100644 (file)
@@ -35,9 +35,8 @@
  * The #GdkDevice object represents a single input device, such
  * as a keyboard, a mouse, a touchpad, etc.
  *
- * See the #GdkSeat documentation for more information
- * about the various kinds of logical and physical devices, and their
- * relationships.
+ * See the #GdkSeat documentation for more information about the
+ * various kinds of devices, and their relationships.
  */
 
 /**
@@ -536,7 +535,8 @@ gdk_device_get_surface_at_position (GdkDevice *device,
  * gdk_device_get_name:
  * @device: a #GdkDevice
  *
- * Determines the name of the device.
+ * Determines the name of the device, suitable
+ * for showing in a user interface.
  *
  * Returns: a name
  **/
@@ -553,7 +553,8 @@ gdk_device_get_name (GdkDevice *device)
  * @device: a #GdkDevice
  *
  * Determines whether the pointer follows device motion.
- * This is not meaningful for keyboard devices, which don't have a pointer.
+ * This is not meaningful for keyboard devices, which
+ * don't have a pointer.
  *
  * Returns: %TRUE if the pointer follows device motion
  **/
@@ -642,7 +643,7 @@ _gdk_device_set_associated_device (GdkDevice *device,
     device->associated = g_object_ref (associated);
 }
 
-/**
+/*
  * gdk_device_list_physical_devices:
  * @device: a logical #GdkDevice
  *
@@ -681,7 +682,7 @@ _gdk_device_remove_physical_device (GdkDevice *device,
   device->physical_devices = g_list_delete_link (device->physical_devices, elem);
 }
 
-/**
+/*
  * gdk_device_get_n_axes:
  * @device: a pointer #GdkDevice
  *
@@ -698,7 +699,7 @@ gdk_device_get_n_axes (GdkDevice *device)
   return device->axes->len;
 }
 
-/**
+/*
  * gdk_device_get_axis: (skip)
  * @device: a #GdkDevice
  * @axes: (array): pointer to an array of axes
@@ -1194,8 +1195,7 @@ gdk_device_set_seat (GdkDevice *device,
  *
  * Returns the #GdkSeat the device belongs to.
  *
- * Returns: (transfer none): A #GdkSeat. This memory is owned by GTK+ and
- *          must not be freed.
+ * Returns: (transfer none): a #GdkSeat
  **/
 GdkSeat *
 gdk_device_get_seat (GdkDevice *device)
index a88e8e7785eed9aadc2801eb3e5b0e10517d7b65..75ef348a2d154d03944c49daa9a9d0443dee56ca 100644 (file)
@@ -232,7 +232,7 @@ gdk_seat_get_capabilities (GdkSeat *seat)
   return seat_class->get_capabilities (seat);
 }
 
-/**
+/*
  * gdk_seat_grab:
  * @seat: a #GdkSeat
  * @surface: the #GdkSurface which will own the grab
@@ -306,7 +306,7 @@ gdk_seat_grab (GdkSeat                *seat,
                            event, prepare_func, prepare_func_data);
 }
 
-/**
+/*
  * gdk_seat_ungrab:
  * @seat: a #GdkSeat
  *
@@ -332,7 +332,7 @@ gdk_seat_ungrab (GdkSeat *seat)
  *
  * Returns: (transfer container) (element-type GdkDevice): A list of #GdkDevices.
  *          The list must be freed with g_list_free(), the elements are owned
- *          by GDK and must not be freed.
+ *          by GTK and must not be freed.
  **/
 GList *
 gdk_seat_get_devices (GdkSeat             *seat,
@@ -350,9 +350,9 @@ gdk_seat_get_devices (GdkSeat             *seat,
  * gdk_seat_get_pointer:
  * @seat: a #GdkSeat
  *
- * Returns the logical device that routes pointer events.
+ * Returns the device that routes pointer events.
  *
- * Returns: (transfer none) (nullable): a logical #GdkDevice with pointer
+ * Returns: (transfer none) (nullable): a #GdkDevice with pointer
  *          capabilities. This object is owned by GTK and must not be freed.
  **/
 GdkDevice *
@@ -370,9 +370,9 @@ gdk_seat_get_pointer (GdkSeat *seat)
  * gdk_seat_get_keyboard:
  * @seat: a #GdkSeat
  *
- * Returns the logical device that routes keyboard events.
+ * Returns the device that routes keyboard events.
  *
- * Returns: (transfer none) (nullable): a logical #GdkDevice with keyboard
+ * Returns: (transfer none) (nullable): a #GdkDevice with keyboard
  *          capabilities. This object is owned by GTK and must not be freed.
  **/
 GdkDevice *
@@ -468,8 +468,8 @@ gdk_seat_get_tool (GdkSeat *seat,
  * Returns all #GdkDeviceTools that are known to the
  * application.
  *
- * Returns: (transfer container) (element-type Gdk.DeviceTool): A list of tools. Free with
- * g_list_free().
+ * Returns: (transfer container) (element-type Gdk.DeviceTool):
+ *     A list of tools. Free with g_list_free().
  **/
 GList *
 gdk_seat_get_tools (GdkSeat *seat)